﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Ylh.BLL;
using System.Data;
using ExtAspNet;

public partial class Module_CustManger_AddIntentCustaspx : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Button2.OnClientClick = ActiveWindow.GetHideReference();
    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        CustBLL bllc = new CustBLL(DbConnectionStr);
        bllc.InsertInto(CustName.Text, StaffID.ToString(), "false", CompanyName.Text.Trim(), TelPhone.Text, CustAddress.Text.Trim(), Legal.Text);
        PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
    }
}